<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Thymeleaf模板首页</title>
</head>
<body>
    <h1>Thymeleaf模板首页</h1>
    <p th:text="${info}">静态数据</p>
    <table border="1">
        <thead>
        <tr>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>出生</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="student : ${students}">
            <td th:text="${student.studentName}">张飞</td>
            <td th:text="${student.gender}">男</td>
            <td th:text="${student.age}">20</td>
            <td th:text="${student.born}">1999-1-1</td>
        </tr>
        </tbody>
    </table>
</body>
</html>